'use strict';

module.exports = app => {
    const { STRING, UUID, UUIDV4, INTEGER, DECIMAL } = app.Sequelize;

    const model = app.model.define('企业信息表', {
        id: {
            type: UUID,
            defaultValue: UUIDV4,
            primaryKey: true,
            comment: 'Id',
        },
        name: {
            type: STRING,
            allowNull: false,
            comment: '名称',
        },
        code: {
            type: STRING,
            comment: '公司code',
        },
        corpid: {
            type: STRING,
            comment: 'corpid'
        },
        secret: {
            type: STRING,
            comment: 'secret'
        },
        token: {
            type: STRING,
            comment: 'token'
        },
    }, {
            tableName: 'company',
            comment: '企业信息表',
        });

    return model;
};
